-
Notifications
You must be signed in to change notification settings - Fork 645
chore: add className testing util: #7231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
👋 Hi, this pull request contains changes to the source code that github/github-ui depends on. If you are GitHub staff, test these changes with github/github-ui using the integration workflow. Or, apply the |
| implementsClassNameBehavior( | ||
| AnchoredOverlay, | ||
| 'prc-Overlay-Overlay-ViJgm', | ||
| component => component.container.firstChild!.childNodes[1].firstChild?.firstChild as HTMLElement, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🫠
|
👋 Hi from github/github-ui! Your integration PR is ready: https://github.com/github/github-ui/pull/7558 |
|
🔴 ci completed with status |
Relatos to https://github.com/github/primer/issues/5255
This pull request adds a reusable test utility to verify that components correctly handle
classNameprops and applies it to theAnchoredOverlaycomponent tests. The main focus is on improving test coverage and consistency for CSS class name behavior.Changelog
New
implementsClassNameBehaviorfunction toutils/testing.tsx, which provides a standardized way to test that components render both their default and customclassNameprops.implementsClassNameBehaviorinto theAnchoredOverlaytest suite, ensuring that the component correctly applies both its base and custom class names.Rollout strategy
Test-only update
Testing & Reviewing
Merge checklist